<!--
  * 403 无权限 页面
  * 
  * @Author:    1024创新实验室-主任：卓大 
  * @Date:      2022-08-08 20:46:18
  * @Wechat:    zhuda1024 
  * @Email:     lab1024@163.com 
  * @Copyright  1024创新实验室 （ https://1024lab.net ），Since 2012 
-->
<template>
    <div>
        时间范围：<a-range-picker @change="changeCreateDate" v-model:value="queryParam.timeRanges" style="width: 240px" />
        <a-button type="primary" @click="onSearch" style="margin-left: 10px;">
            <template #icon>
                <ReloadOutlined />
            </template>
            查询
        </a-button>
    </div>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import { logApi } from '/src/api/device/log';
import { useRoute } from 'vue-router';
const route = useRoute();
import { smartSentry } from '/src/lib/smart-sentry';
const queryParam = ref(
    {

        serialNumber: route.query.serialNumber,
        beginTime: "",
        endTime: "",

    }
)

onMounted(() => {
    init();
});
async function init() {
    try {

        let res = await logApi.getdeviceLogList(queryParam.value);
        console.log(res);

    } catch (e) {
        smartSentry.captureError(e);
    } finally {

    }
}
</script>